home *** CD-ROM | disk | FTP | other *** search
- ##########################################################################
- ## proxy_test_01.tg
- # This script loads the physical system service then connects to it.
- # After connecting to the proxy service, we ping it to make sure its listening.
- # Finally we ask it to load a script and run it.
- # Note: We load a our sample scripts relative to the real SCRIPT_DIR
- {
- -name proxy_test_01
- -start
- -stop
-
- # tell user what we are doing
- -action -print Proxy Initialize Script!
-
- # load the physical system service
- -action -proxy -initialize
-
- # connect to the port/socket of the proxy service
- -action -proxy -connect
-
- # ask the proxy for current state info (UI hints)
- -action -proxy -state
-
- # ping the proxy and make sure he is awake
- -action -proxy -ping
-
- # load the scipt you want to run
- -action -proxy -load "%TG.SCRIPT_DIR%..\Sample Scripts\"proxy_hello_01.tg
-
- # send a start command to run the script
- -action -proxy -start
- }